package com.zh.work.entity.channel;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;


import org.assertj.core.internal.bytebuddy.implementation.bind.annotation.Default;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * code is far away from bug with the animal protecting
 * ┏┓　　　┏┓
 * ┏┛┻━━━┛┻┓
 * ┃　　　　　　　┃
 * ┃　　　━　　　┃
 * ┃　┳┛　┗┳　┃
 * ┃　　　　　　　┃
 * ┃　　　┻　　　┃
 * ┃　　　　　　　┃
 * ┗━┓　　　┏━┛
 * 　　┃　　　┃神兽保佑
 * 　　┃　　　┃代码无BUG！
 * 　　┃　　　┗━━━┓
 * 　　┃　　　　　　　┣┓
 * 　　┃　　　　　　　┏┛
 * 　　┗┓┓┏━┳┓┏┛
 * 　　　┃┫┫　┃┫┫
 * 　　　┗┻┛　┗┻┛
 *
 * @Description: 渠道路由通用类
 * @Author: Li.HuiNeng
 * @Create in: 2019-12-17 15:35
 * @Version: 1.0.1
 */
@ApiModel("渠道路由通用类")
@Data
@EqualsAndHashCode(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class CommonRouteEntity extends Model<CommonRouteEntity>  {
    private static final long serialVersionUID = -2027068808380351848L;
    @ApiModelProperty(value = "逻辑删除字段", name = "deleted")
    @TableLogic
    private Integer deleted;
    @ApiModelProperty(value = "路由名称", name = "routeName")
    private String routeName;
    @ApiModelProperty(value = "接口类型(1-手机APP 2-接口 4-平台接入)", name = "interType")
    private Integer interType;
    @ApiModelProperty(value = "所属机构", name = "branchno")
    @TableField(value = "branchno")
    private String branchNo;
    @ApiModelProperty(value = "所属代理", name = "agentno")
    @TableField(value = "agentno")
    private String agentNo;
    @ApiModelProperty(value = "所属商户", name = "merchNo")
    @TableField(value = "merchno")
    private String merchNo;
    @ApiModelProperty(value = "起始金额", name = "amtStart")
    private Float amtStart;
    @ApiModelProperty(value = "截止金额", name = "amtEnd")
    private Float amtEnd;
    @ApiModelProperty(value = "起始时间,格式hh-MM-mm", name = "timeStart")
    @DateTimeFormat(pattern = "HH:mm:ss", iso = DateTimeFormat.ISO.TIME)
    @JsonFormat(pattern = "HH:mm:ss")
    private String timeStart;
    @ApiModelProperty(value = "截止时间,格式hh-MM-mm", name = "timeEnd")
    @DateTimeFormat(pattern = "HH:mm:ss", iso = DateTimeFormat.ISO.TIME)
    @JsonFormat(pattern = "HH:mm:ss")
    private String timeEnd;
    @ApiModelProperty(value = "状态(1-启用 2-禁用)", name = "status")
    private Integer status;
    @ApiModelProperty(value = "1-T+0，2-T+1，3-全部", name = "settleType")
    private Integer settleType;
    @ApiModelProperty(value = "二维码渠道路由商户实体类JSON字符串", name = "merchantRouteJson")
    @TableField(exist = false)
    private String merchantRouteJson;
}
